Enable the selected sensor with sampling and report parameters
Enable the selected sensor at a specified sampling period and max batch report latency.
To disable sensor, use {@link ASensorEventQueue_disableSensor}.
\param queue {@link ASensorEventQueue} for sensor event to be report to.
\param sensor {@link ASensor} to be enabled.
\param samplingPeriodUs sampling period of sensor in microseconds.
\param maxBatchReportLatencyus maximum time interval between two batch of sensor events are
delievered in microseconds. For sensor streaming, set to 0.
\return 0 on success or a negative error code on failure.
Enable the selected sensor with sampling and report parameters
Enable the selected sensor at a specified sampling period and max batch report latency. To disable sensor, use {@link ASensorEventQueue_disableSensor}.
\param queue {@link ASensorEventQueue} for sensor event to be report to. \param sensor {@link ASensor} to be enabled. \param samplingPeriodUs sampling period of sensor in microseconds. \param maxBatchReportLatencyus maximum time interval between two batch of sensor events are delievered in microseconds. For sensor streaming, set to 0. \return 0 on success or a negative error code on failure.